/**
 * 档案管理api
 * author：lzw_1006@163.com
 */
import axios from '@/libs/api.request'
export default class filesManageApi {
  // 获取员工档案列表
  static GetEmployeeFiles (params) {
    return axios.request({
      url: '/FilesManage/GetEmployeeFiles',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }
  // 获取合同文件列表
  static GetCustomerFiles (params) {
    return axios.request({
      url: '/FilesManage/GetCustomerFiles',
      method: 'post',
      data: params,
      enctype: 'multipart/form-data'
    })
  }

  // 员工文件type=atta，公司文件下载
  static DownloadAttaFile (params) {
    return axios.request({
      url: '/FilesManage/DownloadAttaFile',
      method: 'get',
      params: params,
      responseType: 'blob'
    })
  }
  // 员工文件type=pic下载
  static DownloadPicFile (params) {
    return axios.request({
      url: '/FilesManage/DownloadPicFile',
      method: 'post',
      params: params,
      responseType: 'blob'
    })
  }

  // 批量员工档案
  static DownloadEmpFiles (params) {
    return axios.request({
      url: '/FilesManage/DownloadEmpFiles',
      method: 'post',
      data: params
    })
  }

  // 批量合同文件
  static DownloadCusFiles (params) {
    return axios.request({
      url: '/FilesManage/DownloadCusFiles',
      method: 'post',
      data: params
    })
  }
}
